<template>
  <view>
    <LoginHeader>验证码登录</LoginHeader>
    <view class="login-form">
      <view class="button-field">
        <van-field
          :value="inCode"
          @change="inCode = $event.mp.detail"
          custom-style=""
          placeholder="请输入验证码"
          :border="false"
          use-button-slot
        >
          <van-button
            slot="button"
            size="small"
            type="primary"
            @click="getCode"
            plain
          >
            {{ CodeText }}
          </van-button>
        </van-field>
      </view>
      <van-button type="primary" size="large" @click="login">登录</van-button>
    </view>
    <van-toast id="van-toast" />
  </view>
</template>
<script src="./script.js"></script>
<style lang="less" src="./style.less"></style>
